package com.wangxinrou.wangxinrou_surprisemeal.model;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("user")
@Schema(description = "用户实体类")
public class User {
    @TableId
    @Schema(description = "用户ID")
    private Integer userId;  // 用户ID

    @Schema(description = "用户名")
    private String name;  // 用户名

    @Schema(description = "用户邮箱")
    private String email;  // 用户邮箱

    @Schema(description = "用户密码")
    private String password;  // 用户密码

    @Schema(description = "用户积分")
    private Integer points;  // 用户积分

    @Schema(description = "创建时间")
    private LocalDateTime createdAt;  // 创建时间

    @Schema(description = "更新时间")
    private LocalDateTime updatedAt;  // 更新时间

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getPoints() {
        return points;
    }

    public void setPoints(Integer points) {
        this.points = points;
    }

    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }

    public LocalDateTime getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(LocalDateTime updatedAt) {
        this.updatedAt = updatedAt;
    }
}

